package com.yywz.util;

import java.util.TimeZone;

public class TimeZoneTest {

	public static void main(String[] args) {
//		getDefault();
		getAvailablesIDs();
	}
	
	public static void getDefault(){
		TimeZone tz = TimeZone.getDefault();
		System.out.println("dispaylName" + " : " + tz.getDisplayName());
		System.out.println("ID" + " : " + tz.getID());
		System.out.println("RawOffset" + " : " + tz.getRawOffset());
		System.out.println("Use daylight saving time" + " : " + tz.useDaylightTime());
	}
	
	public static void getAvailablesIDs(){
		String[] ids = TimeZone.getAvailableIDs();
		for (String id : ids){
			System.out.println(id);
		}
		
	}
}
